/**
 * Created by Bruce-Thinkpad-X1 on 2017/6/28.
 */
var app = angular.module('myapp', ['ui.router']);
app.config(['$stateProvider','$urlRouterProvider','$locationProvider',function($stateProvider,$urlRouterProvider,$locationProvider){
    $locationProvider.hashPrefix('');
    $urlRouterProvider.otherwise('/products');
    $stateProvider.state('Home',{
        url:'/home',
        template:'<h1>Home</h1>'
    }).state('senYong',{
        url:"products",
        templateUrl:'./tpl/senyong.tpl.html'
    }).state('kouFuLai',{
        templateUrl:'./tpl/koufulai.tpl.html'
    }).state('youMan',{
        templateUrl:'./tpl/youman.tpl.html'
    })
}])

$(document).ready(function () {
    
    $('.two-col').click(function () {
        $('.one-col .image').hide();
        $('.two-col').show();
        // $("div.p_products-list").addClass("two-col");
    });
    $('.one-col').click(function () {
        $('.two-col .image').hide();
        $('.one-col').show();
        // $("div.p_products-list").addClass("one-col");
    });
    $('.image').click(function () {
        $('.one-col .two-col').hide();
        $('.image').show();
        // $("div.p_products-list").addClass("image");
    });
})

